<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <div class="header-div" id="top">
        <div class="mid-header clearfix">
            <a href="${pageContext.request.contextPath}" class="logo-font">Delicious</a>
            <span class="header-right-box">

            <c:if test="${sessionScope.c !=null }">
                <span class="wlc-font">Welcome, ${sessionScope.c.cPersonName}</span>
            <span> | </span>
            <div class="dropdown header-link-box" style="display:inline;">
                <button href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户中心 <span class="caret"></span></button>
                <ul class="dropdown-menu">
                    <li>
                        <a href="${pageContext.request.contextPath}/action/showOrder">
                            我的订单
                        </a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/action/showComplaintOrder">
                            已投诉订单
                        </a>
                    </li>
                    <li role="separator" class="divider"></li>
                    <li>
                        <a href="${pageContext.request.contextPath}/action/updateUserInfo">
                            修改个人信息
                        </a>
                    </li>
                </ul>
            </div>

            <!--
            <a href="${pageContext.request.contextPath}/action/showOrder" class="header-link-box">
                <button type="button">查看订单</button>
            </a>
-->
            </c:if>
            <c:if test="${sessionScope.c ==null }">
                <a href="${pageContext.request.contextPath}/regist" class="header-link-box">
                    <button type="button">注册</button>
                </a>
            </c:if>

            <span> | </span>
            <c:if test="${sessionScope.c == null}">
                <a href="javascript:void(0);" class="header-link-box" data-toggle="modal" data-target="#SignInModal">
                    <button type="button">登录</button>
                </a>
            </c:if>
            <c:if test="${sessionScope.c != null}">
                <a href="${pageContext.request.contextPath}/logout" class="header-link-box">
                    <button type="button">退出</button>
                </a>
            </c:if>
            </span>
        </div>
    </div>